'use strict';

define([],function(){
	
	//var domainUrl='http://120.25.12.25:90';
	var domainUrl='http://192.168.1.157:90';
		
	var UrlConfig ={
		
		/*供应商*/
		baseSupplier:'../index/service/supplier',
		getSupplier:function(id){
			return domainUrl+'/api/Supplier/GetSupplier?code='+id;
		},
		addSupplier:function(){
			return domainUrl+'/api/Supplier/AddSupplier';
		},
		updateSupplier:function(){
			return domainUrl+'/api/Supplier/EditSupplier';
		},
		deleteSupplier:function(id){
			return domainUrl+'/api/Supplier/DelSupplier?code='+id;
		},
		//getPageableSupplier:'../index/data/suppliers-pageable.json',//本地接口数据返回测试
		getPageableSupplier:domainUrl+'/api/Supplier/GetSupplierList',
		
		/*证书货*/
		baseProductDia:'../index/service/productDia',
		getProductDia:function(id){
			return '../index/service/productDia/get/'+id;
		},
		addProductDia:function(id){
			return '../index/service/productDia/add/'+id;
		},
		updateProductDia:function(id){
			return '../index/service/productDia/update/'+id;
		},
		deleteProductDia:function(id){
			return '../index/service/productDia/delete/'+id;
		},
		getPageableProductDia:'../index/data/productDia-pageable.json',
		addProductDiaCollection:'../index/service/productDiaCollection/add/',
		deleteProductDiaCollection:'../index/service/productDiaCollection/delete/',
		
		/*散货*/
		baseProductsDiaBulkcargo:'../index/service/productsDiaBulkcargo',
		getProductsDiaBulkcargo:function(id){
			return '../index/service/productsDiaBulkcargo/get/'+id;
		},
		addProductsDiaBulkcargo:function(id){
			return '../index/service/productsDiaBulkcargo/add/'+id;
		},
		updateProductsDiaBulkcargo:function(id){
			return '../index/service/productsDiaBulkcargo/update/'+id;
		},
		deleteProductsDiaBulkcargo:function(id){
			return '../index/service/productsDiaBulkcargo/delete/'+id;
		},
		getPageableProductsDiaBulkcargo:'../index/data/productsDiaBulkcargo-pageable.json',
		addProductsDiaBulkcargoCollection:'../index/service/productsDiaBulkcargoCollection/add/',
		deleteProductsDiaBulkcargoCollection:'../index/service/productsDiaBulkcargoCollection/delete/'
	};		
	
	return UrlConfig;

});